<input type="password" id="passwd" style="width:20px">

<script>
    // This verifies the password can still be revealed by keyboard when there is no reveal icon due to the width too small.
    document.getElementById("passwd").focus();
    eventSender.keyDown('a');
    eventSender.keyDown('F8', ['altKey']);
</script>